package com.example.common.conf.exception;

import lombok.Data;

/**
 * @Author 朱兴邦
 * @CreateDate： 2020/7/28 10:30
 * @Version 1.0
 */
@Data
public class BasicException extends RuntimeException {

    private Integer code;

    private String message;

    private String data;

    public BasicException(String message, Integer errorCode) {
        this.code = errorCode;
        this.message = message;
        this.data = null;
    }
}
